home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 4905 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  736 b 

  1. Path: news.ov.com!news
  2. From: glenn@ov.com (Fletcher.Glenn@ov.com)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Reading child pgm's stdout?
  5. Date: 7 Feb 1996 22:05:58 GMT
  6. Organization: OpenVision
  7. Message-ID: <4fb7o7$ouo@spanky.pls.ov.com>
  8. References: <clintDMCyH6.Ky3@netcom.com>
  9. Reply-To: glenn@ov.com
  10. NNTP-Posting-Host: foghorn.pls.ov.com
  11.  
  12. In article Ky3@netcom.com, clint@netcom.com (Clinton Carr) writes:
  13. >Can someone provide a snippet of code that reads the
  14. >stdout of a child's program?  If I use Perl, then the
  15. >following statement does it for me.
  16. >
  17. >$answer = system("/usr/local/bin/childpgm.pl");
  18. >
  19. >The above childpgm.pl is writing to stdout.
  20. >
  21. >thanks
  22.  
  23.  
  24. You really want to investigate the popen() function.
  25.  
  26.             Fletcher.Glenn@ov.com
  27.  
  28.  
  29.